package cmd.commands;

import platform.PlatformObjectFactory;
import util.PlayerUtilities;


public class RestartPlayerCommand extends Command {

	public RestartPlayerCommand(Command c) {
		super(c.command, c.parameters);
	}

	@Override
	public boolean execute() {
		PlayerUtilities.saveJsonToFile("RESTART_PLAYER",0);
		PlatformObjectFactory.getInstance().getCommandExecutor().restartPlayer();
		return true;
	}

}
